package cn.wjzhang.middle.client;

import cn.wjzhang.core.annotation.AutoLog;
import cn.wjzhang.core.beans.vo.Result;
import cn.wjzhang.middle.beans.request.MidShortMesRequest;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ========================
 * 短信
 *
 * @author wjzhang
 * @version v1.0
 * ========================
 * @date 2023/6/26 16:12
 */
@FeignClient(
        value = "wmc-cost",
        path = "/wmc-cost"
)
public interface MidShortMesClient {

    /**
     * 发送短信验证码
     * @param request 手机号码和系统id
     * @param bindingResult 错误
     * @return
     */
    @PostMapping("/shortMes/editClient")
    Result<?> sendCode(@Validated @RequestBody MidShortMesRequest request, BindingResult bindingResult);
}
